return {
  "sindrets/diffview.nvim",
  cmd = { "DiffviewOpen", "DiffviewFileHistory" },
  enabled = false,
  keys = {
    {
      "<leader>gdt",
      function()
        local view = require("diffview.lib").get_current_view()
        if view then
          vim.cmd([[DiffviewClose]])
        else
          vim.cmd([[DiffviewOpen]])
        end
      end,
      desc = "DiffView Toggle",
    },
    {
      "<leader>gdh",
      function()
        local view = require("diffview.lib").get_current_view()
        if view then
          vim.cmd([[DiffviewClose]])
        else
          vim.cmd([[DiffviewFileHistory %]])
        end
      end,
      desc = "DiffView History",
    },
  },
  config = function()
    -- require 'custom.config.diffview'
    vim.opt.fillchars:append({ diff = "╱" })
    require("diffview").setup({
      enhanced_diff_hl = true,
      view = {
        default = { winbar_info = true },
        file_history = { winbar_info = true },
      },
      hooks = {
        diff_buf_read = function(bufnr)
          vim.b[bufnr].view_activated = false
        end,
      },
    })
  end,
}
